#!/bin/bash

### 当flash.sh文件在项目根目录下时，可以使用以下命令
# openocd -f ./openocd/openocd_stlink.cfg -c "program build/bin/${executableName}.hex verify reset exit"
# openocd -f ./openocd/openocd_dap.cfg -c "program build/bin/${executableName}.hex verify reset exit"
JFlash -openprj'stm32f103c8.jflash' -open "build/bin/${executableName}.hex",0x8000000 -auto -startapp 